<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">

	<f:view contentType="text/html">
		<h:head>
			<title>upload</title>
		</h:head>
		<h:body>
			<h:form>
			    <h:commandButton value="根路径下的doc download">
					<p:fileDownload value="#{fileDownloadController.file}" />
				</h:commandButton>
				
				
				 <h:commandButton value="根路径下的pdf download">
					<p:fileDownload value="#{fileDownloadController.file1}" />
				</h:commandButton>
				
				
				 <h:commandButton value="根路径下的txt download">
					<p:fileDownload value="#{fileDownloadController.file2}" />
				</h:commandButton>
				
				<h:commandButton value="class路径下的 download">
					<p:fileDownload value="#{fileDownloadController.file3}" />
				</h:commandButton>
			</h:form>
		</h:body>
	</f:view>
</html>